
#ifndef ROSCPP_COMMON_H
#define ROSCPP_COMMON_H

#include <cstdlib>
#include <cstdio>
#include <cerrno>
#include <cassert>
#include <sys/types.h>
#include <unistd.h>
#include <pthread.h>                                                                                                                           
#include <signal.h>

#include <stdint.h>
#include <assert.h>
#include <stddef.h>
#include <string>


#include <boost/shared_array.hpp>


void disableAllSignalsInThisThread();





using std::string;

void disableAllSignalsInThisThread()
{
  // pthreads_win32, despite having an implementation of pthread_sigmask,
  // doesn't have an implementation of sigset_t, and also doesn't expose its
  // pthread_sigmask externally.
  sigset_t signal_set;

  /* block all signals */
  sigfillset( &signal_set );
  pthread_sigmask( SIG_BLOCK, &signal_set, NULL );
}







#endif
